﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity.RSS_Feed
{
    [Serializable]
    public class People
    {
        private int userID;         //唯一确定一个用户的一串数字
        private string location;    //用户长居地
        private string uid;         //用户在豆瓣上的 username，唯一确定一个用户
        private string title;       //用户名号
        private string content;     //用户的自我介绍
        private string selfURL;     //用户的豆瓣页面，如：http://www.douban.com/people/3141255/    
        private string homepage;    //用户个人主页，可以是其他非豆瓣网站
        private string iconLink;    //用户的图像图片链接

        public int UserID
        {
            get
            {
                return userID;
            }
        }

        public string Location
        {
            get
            {
                return location;
            }
            set
            {
                location = value;
            }
        }

        public string UID
        {
            get
            {
                return uid;
            }
        }

        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
            }
        }

        public string Content
        {
            get
            {
                return content;
            }
            set
            {
                content = value;
            }
        }

        public string SelfURL
        {
            get
            {
                return selfURL;
            }
            set
            {
                selfURL = value;
            }
        }

        public string HomePage
        {
            get
            {
                return homepage;
            }
            set 
            {
                homepage = value;
            }
        }

        public string IconLink
        {
            get
            {
                return iconLink;
            }
            set
            {
                iconLink = value;
            }
        }

        public People(int userID) 
        {
            this.userID = userID;
        }
        public People(string userName)
        {
            this.uid = userName;
        }
        public People(string uid, string location, string title, string content, string selfURL, string homepage, string icon)
        {
            this.location = location;
            this.uid = uid;
            this.title = title;
            this.content = content;
            this.selfURL = selfURL;
            this.homepage = homepage;
            this.iconLink = icon;
        }
    }
}
